/**
 * 
 */
package cn.tonyqiu.wonuly.dao.ibatis;

import cn.tonyqiu.wonuly.dao.UserDao;
import cn.tonyqiu.wonuly.model.User;

/**
 * @author <a href="mailto:tony.qiu.smart@gmail.com">Tony Qiu</a>
 * 
 */
public class UserDaoiBatis extends GenericDaoiBatis<User, Integer> implements
		UserDao {
	public UserDaoiBatis() {
		super(User.class);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see cn.tonyqiu.wonuly.dao.UserDao#getUserIdByUserName(java.lang.String)
	 */
	@Override
	public User getUserByEmail(String email) {

		return (User) getSqlMapClientTemplate().queryForObject(
				"getUserByUserEmail", email);
	}

}
